package com.example.wallet.utils

import com.example.wallet.bean.UserInfo
import com.example.wallet.bean.UserInfoTemple

//优惠体验会员
const val PREFERENTIAL_EXPERIENCE_MEMBER = 0

//体验会员
const val EXPERIENCE_MEMBER = 1

//初级会员
const val JUNIOR_MEMBERS = 2

//中级会员
const val INTERMEDIATE_MEMBER = 3

//高级会员
const val SENIOR_MEMBER = 4

//初级代理
const val PRIMARY_AGENT = 5

//中级代理
const val INTERMEDIATE_AGENT = 6

//高级代理
const val SENIOR_AGENT = 7

//初级
const val management_Level_Primary= 0

//主任
const val management_Level_directors= 1

//经理
const val management_Level_manager= 2

//总监
const val management_Level_director= 3

//董事
const val management_Level_trustee= 4

//荣誉董事
const val management_Level_honor_trustee= 5

val memberType = mapOf(
    PREFERENTIAL_EXPERIENCE_MEMBER to "优惠体验会员",
    EXPERIENCE_MEMBER to "体验会员",
    JUNIOR_MEMBERS to "初级会员",
    INTERMEDIATE_MEMBER to "中级会员",
    SENIOR_MEMBER to "高级会员",
    PRIMARY_AGENT to "初级代理",
    INTERMEDIATE_AGENT to "中级代理",
    SENIOR_AGENT to "高级代理"
)

val  managementType = mapOf(
    management_Level_Primary to "无级别",
    management_Level_directors to "主任",
    management_Level_manager to "经理",
    management_Level_director to "总监",
    management_Level_trustee to "董事",
    management_Level_honor_trustee to "荣誉董事",
)

fun getManagementName(mUserInfo:UserInfoTemple)="市场等级: ${managementType[mUserInfo.managementLevel]}"

fun getMemberName(mUserInfo:UserInfo) = "会员等级: ${memberType[mUserInfo.level]}"

fun getMemberName(mUserInfo: UserInfoTemple) = "会员等级: ${memberType[mUserInfo.level]}"

